package saxion.speelveld.spaceengineer.buildings;

import saxion.speelveld.spaceengineer.R;
import saxion.speelveld.spaceengineer.model.ProducingBuilding;
import saxion.speelveld.spaceengineer.model.Resource;
import saxion.speelveld.spaceengineer.model.ResourceType;

public class SolarCenter extends ProducingBuilding
{

	public SolarCenter()
	{
		super(2, 2);
		super.setBuildingName(SolarCenter.this.getClass().getSimpleName());
		super.setBuildingExplanation("The Solar Center generates clean power and thus makes" +
			" you're planet more enjoyable.");
		super.resourceCosts.add(new Resource(ResourceType.MONEY, 200));
		super.resourceCosts.add(new Resource(ResourceType.SCIENCEPOINTS, 10));
		super.resourceCosts.add(new Resource(ResourceType.GLASS, 400));
		super.resourceCosts.add(new Resource(ResourceType.METAL, 50));

		super.addResourceProduceGain(new Resource(ResourceType.ELECTRICITY, 65, false));
		super.addResourceProduceGain(new Resource(ResourceType.HAPPINESS, 1, false));

		// Mitchell's Idea
		/**
		 * super.setResourcesProduced(ResourceType.ELECTRICITY); super.setResourcesProduced(ResourceType.HAPPINESS); if
		 * (super.getResourcesProduced() == ResourceType.ELECTRICITY) { super.setProductioncapacity(10); } if
		 * (super.getResourcesProduced() == ResourceType.HAPPINESS) { super.setProductioncapacity(5); }
		 */

		super.resourceImages = new int[4];
		super.resourceImages[0] = R.drawable.solarfield_0;
		super.resourceImages[1] = R.drawable.solarfield_1;
		super.resourceImages[2] = R.drawable.solarfield_2;
		super.resourceImages[3] = R.drawable.solarfield_3;
		super.setPreviewResourceImageId(R.drawable.solarfield);
	}

	// @Override
	// public int produceGoods()
	// {
	// return 0;
	// }

}
